package com.moonstar.service;

import com.moonstar.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService  {

    User login(User user);

    User get(Long id);

    List<User> list(Map<String, Object> map);

    int count(Map<String,Object> map);

    int save(User user);

    int update(User user);

    int remove(Long id);

    User getByUsername(String username);
}
